use std::sync::Mutex;
use lazy_static::lazy_static;
use sled::Db;

const USER_DB_PATH: &str = "data/users";
const FILE_DB_PATH: &str = "data/files";
lazy_static! {
    // 用户信息数据库
    pub static ref users: Mutex<Db> = Mutex::new(sled::open(USER_DB_PATH).unwrap());
    // 文件数据库
    pub static ref files:Mutex<Db> = Mutex::new(sled::open(FILE_DB_PATH).unwrap());
}